import request from '@/request/index.js';

export function getOnlinePayList(params) {
	return request.get({
		url: '/app-api/hospital/wait-pay/list-wait-pay',
		params: params || {},
		custom: {
			title: "获取待缴费列表",
			authentication: true
		}
	});
}

export function getWaitDetails(data) {
	return request.post({
		url: '/app-api/hospital/wait-pay/details',
		data,
		custom: {
			title: "获取待缴费详情",
			authentication: true
		}
	});
}
export function getWaitDetailsPay(params) {
	return request.get({
		url: '/app-api/hospital/wait-pay/details-pay',
		params,
		custom: {
			title: "获取缴费详情",
			authentication: true
		}
	});
}

export function getPayedList(params) {
	return request.get({
		url: '/app-api/hospital/service/list-paid',
		params: params || {},
		custom: {
			title: "获得门诊已缴费列表",
			authentication: true
		}
	});
}
export function getRefundList(params) {
	return request.get({
		url: '/app-api/hospital/service/get-refund-list',
		params: params || {},
		custom: {
			title: "获得已退款列表",
			authentication: true
		}
	});
}
export function getAccountBalance(params) {
	return request.get({
		url: '/app-api/hospital/service/query-balance',
		params: params || {},
		custom: {
			title: "获得账户余额",
			authentication: true
		}
	});
}

export function getRefillCard(params) {
	return request.get({
		url: '/app-api/hospital/service/patient-recharge',
		params: params || {},
		custom: {
			title: "门诊卡充值",
			authentication: true
		}
	});
}

export function patientPay(data) {
	return request.post({
		url: '/app-api/hospital/service/patient-pay',
		data: data || {},
		custom: {
			title: "门诊缴费",
			authentication: true
		}
	});
}